/**
 * Created by 八千穂えな on 2016/10/14.
 */

managerApp.factory("cloudFactory", ['$http', function ($http) {
    var cloud = {};

    cloud.getList = function (params, callback) {
        angularHttpGet($http, "/smtool_project/api/om/getList", params, function (response) {
            callback(response);
        })
    };

    cloud.editStaff = function (params, callback) {
        angularHttpPost($http, "/smtool_project/api/om/update", params, function (response) {
            callback(response);
        })
    };

    cloud.createStaff = function (params, callback) {
        angularHttpPost($http, "/smtool_project/api/om/create", params, function (response) {
            callback(response);
        })
    };

    return cloud;
}]);
